package app.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import app.dao.CommentDao;
import app.domain.Assess;
import app.domain.FinishedOrder;
import app.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService{
	
	@Autowired
    private CommentDao commentDao;
	@Override
	public List<FinishedOrder> showFinishedOrder(Integer accountId) {
		// TODO Auto-generated method stub
		return commentDao.showFinishedOrder(accountId);
	}

	@Override
	public void assess(Assess assess) {
		// TODO Auto-generated method stub
		commentDao.assess(assess);
	}

	@Override
	public Assess findAssess(Integer id) {
		// TODO Auto-generated method stub
		return commentDao.findAssess(id);
	}

	@Override
	public List<Assess> findAssessByWorkId(Integer workId) {
		// TODO Auto-generated method stub
		return commentDao.findAssessByWorkId(workId);
	}

	@Override
	public List<Assess> findAllAssess() {
		// TODO Auto-generated method stub
		return commentDao.findAllAssess();
	}

}
